﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Db8.Data
{
    [Table("UserRoles")]
    public class UserRole
    {
        [Key]
        [ForeignKey("User")]
        [Column(Order = 0)]
        public long UserId { get; set; }
        public virtual User User { get; set; }

        [Key]
        [ForeignKey("Role")]
        [Column(Order = 1)]
        public int RoleId { get; set; }
        public virtual Role Role { get; set; }

    }
}
